<?php $this->load->view('tourism/layout/header')?>
<header class="am-search details">
    <ul class="am-cf">
        <li class="r-black">
            <a href="javascript:history.go(-1);">
                <i class="iconfont icon-zuojiantou"></i>
            </a>
        </li>
        <li class="header-input">
            <p>订单支付</p>
        </li>
        <li class="header-home">
           <?php $this->load->view('tourism/layout/nav'); ?>
        </li>
    </ul>
</header>
<div class="circuittest-first">
    <form method="POST"  action="<?php echo site_url('tourism/payment/orderToPay');?>">
        <input type="hidden" name="pay_bank" />
        <input type="hidden" name="order_sn" value="<?php echo $last_order_sn ?>" />
        <div class="submit-all">
            <div class="pay-money">
                <p>订单编号<span><?php echo $last_order_sn ?></span></p>
                <p class="money">￥<span><?php echo bcadd($payResult->total_actual_price, $payResult->total_transport_cost,2);?> <?php if($payResult->total_pay_swim > 0):?>（抵<?php echo $payResult->total_pay_swim;?>积分）<?php endif;?></span></p>
            </div>
            <div class="submit-orders">
                 <div class="but-the">收款方<span><?php echo $headTitle; ?></span></div>
                 <div class="but-the">订单编号<span><?php echo $last_order_sn ?></span></div>
            </div>
            <div class="mode-payment">
                <p class="payment">支付方式</p>
                <ul>
                    <li class="mode-li" >
                        <a class="list-link am-cf" href="javascript:;">
                            <span class="pay-icon"></span>
                            <span class="title-main">余额支付</span>
                            <span class="check-wrapper active" data-id="99" ></span>
                        </a>
                    </li>
                    <?php if(validateWeiXin()): ?>
                        <li class="mode-li">
                            <a class="list-link am-cf" href="javascript:;">
                                <span class="pay-icon wechat"></span>
                                <span class="title-main">微信支付</span>
                                <span class="check-wrapper" data-id="201"></span>
                            </a>
                        </li>
                    <?php else : ?>
                        <li class="mode-li">
                            <a class="list-link am-cf" href="javascript:;">
                                <span class="pay-icon alipay"></span>
                                <span class="title-main">支付宝支付</span>
                                <span class="check-wrapper" data-id="1"></span>
                            </a>
                        </li>
                    <?php endif;?>
                </ul>
            </div>
            <div class="mode-sure">
                <button type="button" id="submit-order-line-pay" class="am-btn">确认支付</button>
            </div>
            <div class="am-modal am-modal-confirm" tabindex="-1" id="my-confirm"></div>
        </div>
    </form>
</div>
<?php $this->load->view('tourism/layout/footer')?>